package com.example.pcl.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.URL;

/**
 * <p>
 * 心理咨询师表，存储心理咨询师个人信息
 * </p>
 *
 * @author xx
 * @since 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("counselors")
@Schema(name = "Counselors对象", description = "心理咨询师表，存储心理咨询师个人信息")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Counselors implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "心理咨询师ID")
    @TableId(value = "counselor_id", type = IdType.AUTO)
    private Integer counselorId;

    @Schema(description = "关联的用户ID")
    private Integer userId;

    @Schema(description = "心理咨询师姓名")
    private String name;

    @Schema(description = "资质证书")
    @URL
    private String qualification;

    @Schema(description = "个人简介")
    private String bio;

    @Schema(description = "可预约时间段")
    private String availableSlots;

    @Schema(description = "咨询师擅长的心理领域")
    private String specialtyArea;

    @Schema(description = "咨询师的咨询经验时长")
    private Integer consultationExperience;

    @Schema(description = "是否上班")
    private Integer isOnDuty;

    @Schema(description = "工号")
    private String workNumber;

    @Schema(description = "心理咨询师头像")
    private String avatarUrl;
}
